import request from "@/request/index.js";

//注册获取验证码
export function getCode(phone){
	return request('/front/register/code/'+ phone,'get',null)
}
//注册
export function enroll(data){
	return request('/front/register','post',data)
}
//登录获取验证码
 
export function getLoginCode(code){
	return request('/front/login/code/'+ code,'get',null)
}
//手机号登录
export function phone(data){
	return request('/front/login','post',data)
}
//账号密码登录
export function getLogin(data){
	return request('/front/login','post',data)
}
